package com.adams.custom.page.core.dao.impl;

import java.util.List;

import com.adams.access.db.bean.SystemVersion;
import com.adams.access.db.dao.hibernate.HibernateGenericDao;

/**
 * 
 * File Name : SystemVersionDaoImpl.java
 * 
 * @Description : 系统版本信息数据访问类
 */
public class SystemVersionDaoImpl extends
		HibernateGenericDao<SystemVersion, Long>
{

	public List<SystemVersion> findAll()
	{
		List<SystemVersion> result = query("from SystemVersion");
		return result;
	}

	public SystemVersion findByName(String name)
	{
		List<SystemVersion> list = query("from SystemVersion where name=?",
				name);
		if (null != list && list.size() > 0)
		{
			return list.get(0);
		} else
		{
			return null;
		}
	}
}
